home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / res_isourserver.z / res_isourserver
Encoding:
Text File  |  1998-10-20  |  4.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. RRRREEEESSSS____IIIISSSSOOOOUUUURRRRSSSSEEEERRRRVVVVEEEERRRR((((3333CCCC))))                                        RRRREEEESSSS____IIIISSSSOOOOUUUURRRRSSSSEEEERRRRVVVVEEEERRRR((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      res_isourserver, res_nameinquery, res_queriesmatch, res_querydomain,
  10.      res_randomid - resolver query utilities
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<rrrreeeessssoooollllvvvv....hhhh>>>>
  14.  
  15.      iiiinnnntttt rrrreeeessss____iiiissssoooouuuurrrrsssseeeerrrrvvvveeeerrrr((((ssssttttrrrruuuucccctttt ssssoooocccckkkkaaaaddddddddrrrr____iiiinnnn ****iiiinnnnpppp))));;;;
  16.  
  17.      iiiinnnntttt rrrreeeessss____nnnnaaaammmmeeeeiiiinnnnqqqquuuueeeerrrryyyy((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, iiiinnnntttt ttttyyyyppppeeee,,,, iiiinnnntttt ccccllllaaaassssssss,,,, uuuu____cccchhhhaaaarrrr ****bbbbuuuuffff,,,, uuuu____cccchhhhaaaarrrr ****eeeeoooommmm))));;;;
  18.  
  19.      iiiinnnntttt rrrreeeessss____qqqquuuueeeerrrriiiieeeessssmmmmaaaattttcccchhhh((((uuuu____cccchhhhaaaarrrr ****bbbbuuuuffff1111,,,, uuuu____cccchhhhaaaarrrr ****eeeeoooommmm1111,,,, uuuu____cccchhhhaaaarrrr ****bbbbuuuuffff2222,,,, uuuu____cccchhhhaaaarrrr ****eeeeoooommmm2222))));;;;
  20.  
  21.      iiiinnnntttt rrrreeeessss____qqqquuuueeeerrrryyyyddddoooommmmaaaaiiiinnnn((((cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, cccchhhhaaaarrrr ****ddddoooommmmaaaaiiiinnnn,,,, iiiinnnntttt ccccllllaaaassssssss,,,, iiiinnnntttt ttttyyyyppppeeee,,,, uuuu____cccchhhhaaaarrrr ****aaaannnnsssswwwweeeerrrr,,,, iiiinnnntttt aaaannnnsssslllleeeennnn))));;;;
  22.  
  23.      uuuu____iiiinnnntttt11116666____tttt rrrreeeessss____rrrraaaannnnddddoooommmmiiiidddd((((vvvvooooiiiidddd))));;;;
  24.  
  25. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  26.      Helper functions for resolver code development.
  27.  
  28.      rrrreeeessss____iiiissssoooouuuurrrrsssseeeerrrrvvvveeeerrrr returns 1 if argument appears in current list of the
  29.      clients name servers, returns 0 if not.  rrrreeeessss____nnnnaaaammmmeeeeiiiinnnnqqqquuuueeeerrrryyyy looks for (name,
  30.      type, class) in the query section of packet (buf, eom).  Returns: -1
  31.      format error, 0 not found, or >0 found.
  32.  
  33.      rrrreeeessss____qqqquuuueeeerrrriiiieeeessssmmmmaaaattttcccchhhh looks for a 1:1 mapping of (name, type, class) in
  34.      packets (buf1, eom1) and (buf2, eom2).  Returns: -1 format error, 0 not a
  35.      1:1 mapping, and >0 is a 1:1 mapping.  rrrreeeessss____qqqquuuueeeerrrryyyyddddoooommmmaaaaiiiinnnn performs a call to
  36.      res_query (see rrrreeeessss____qqqquuuueeeerrrryyyy((((3333)))) ) on the concatenation of name and domain.
  37.  
  38.      rrrreeeessss____rrrraaaannnnddddoooommmmiiiidddd is a pseudo-random number generator.
  39.  
  40. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  41.      resolver(4).
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.